package com.yimiyisu.kooteam.server;
import com.zen.ZenEngine;
import com.zen.a.a;
import org.smartboot.http.server.HttpBootstrap;

public class DefaultHttpBootstrap extends HttpBootstrap {
    private final String a;
    private final int b;

    public DefaultHttpBootstrap(String var1, int var2) {
        this.a = var1;
        this.b = var2;
    }

    public void start() {
        try {
            a var1 = com.zen.h.a.a();
            ZenEngine var2 = new ZenEngine();
            var1.a("ZenEngine", var2);
            var1.a(this.a);
            var1.a();
            var1.a("zen", com.zen.b.b.class);
            var1.a("auth", com.zen.b.a.class);
//            com.zen.e.a.b var3 = new com.zen.e.a.b();
//            var3.a(DateKit.now());
//            com.zen.e.a.a(var3);
        } catch (Exception var4) {
            throw new RuntimeException(var4);
        }

        super.start();
        System.out.println("Address: [http://127.0.0.1:" + this.b + "]");
        System.out.println("\u001b[32mApplication was started successfully.\u001b[0m");
    }

    public void shutdown() {
        com.zen.h.a.a().b();
        super.shutdown();
    }
}
